﻿<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <title>叩丁狼CRM(演示版)</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <#include "../common/head.ftl"/>
    <script src="/js/plugins/My97DatePicker/WdatePicker.js"></script>
    <link rel="stylesheet" href="/css/core.css"/>
</head>
<body>
<#assign menu="customerTransfer"/>
<div class="container " style="margin-top: 20px">
    <#include "../common/welcome.ftl"/>
    <div class="row">

        <#include "../common/menu.ftl"/>


        <div class="col-sm-9">
            <div class="row">
                <div class="col-sm-12">
                    <h1 class="page-head-line">跟进历史信息查询</h1>
                </div>
            </div>

            <form class="form-inline" id="searchForm" action="/customerTransfer/list.do" method="post">
                <input type="hidden" name="currentPage" id="currentPage" value="1">
                <div class="form-group">
                    <label for="keyword">关键字:</label>
                    <input type="text" class="form-control" name="keyword"  placeholder="请输入客户姓名/操作人">
                </div>
                <div class="form-group">
                    <label >时间段:</label>
                    <input type="text" class="form-control"  name="beginDate"  placeholder="请输入起始日期">
                    ~
                    <input type="text" class="form-control"  name="endDate"  placeholder="请输入结束日期">
                </div>
                <button id="btn_query" class="btn btn-default">
                    <span class="glyphicon glyphicon-search"></span> 查询
                </button>
            </form>
            <script>
                //设置日期
                $(function () {
                    $("#searchForm input[name='beginDate']").click(function () {
                        new WdatePicker({
                            maxDate:$("#searchForm input[name='endDate']").val(),
                            readOnly:true
                        });
                    });
                    $("#searchForm input[name='endDate']").click(function () {
                        new WdatePicker({
                            minDate:$("#searchForm input[name='beginDate']").val(),
                            maxDate:new Date(),
                            readOnly:true
                        });
                    });
                    <#if qo??>
                        <#if qo.beginDate??>
                                $("#searchForm input[name='beginDate']").val("${qo.beginDate?string("yyyy-MM-dd")}");
                        </#if>
                        <#if qo.endDate??>
                            $("#searchForm input[name='endDate']").val("${qo.endDate?string("yyyy-MM-dd")}");
                        </#if>
                        <#if qo.keyword??>
                              $("#searchForm input[name='keyword']").val("${qo.keyword}");
                        </#if>
                    </#if>
                    //高级查询
                    $("#btn_query").click(function () {
                        $("#searchForm").submit();
                    });

                });
            </script>
            <table class="table table-striped table-hover" >
                <tr>
                    <th>编号</th>
                    <th>客户姓名</th>
                    <th>操作时间</th>
                    <th>操作人</th>
                    <th>原营销人员</th>
                    <th>新营销人员</th>
                    <th>移交原因</th>
                </tr>
                <#list pageInfo.list as entity >
                <tr>
                    <td>${entity_index + 1}</td>
                    <td>${entity.customer.name}</td>
                    <td>${entity.operateTime?string("yyyy-MM-dd HH:mm")}</td>
                    <td>${entity.operator.name}</td>
                    <td>${entity.oldSeller.name}</td>
                    <td>${entity.newSeller.name}</td>
                    <td>${entity.reason}</td>
                </tr>
                </#list>
            </table>
            <#include "../common/page.ftl"/>
        </div>
    </div>
</div>
<#include "../common/mycode.ftl"/>
</body>
</html>